package Com.Hupochuan.Dal.Tab;

import java.util.Hashtable;
import java.util.List;
import java.util.Vector;

import Com.Hupochuan.Dal.DBManager.DBManager;
import Com.Hupochuan.Vo.FlipPanel;

public class FlipPanelTab {
	/*
	 * 本类私有对象
	 */
	private DBManager<FlipPanel> dbManager = new DBManager<FlipPanel>(FlipPanel.class);
	
	/*
	 * 单一实例
	 */
	private FlipPanelTab(){}
	private static FlipPanelTab flipPanelTab = new FlipPanelTab();
	public static FlipPanelTab getObject(){
		return flipPanelTab;
	}
	
	/*
	 * 查询翻盖面板列表
	 */
	public List<FlipPanel> findFlipPanelList(){
		
		//参数部分
		List<FlipPanel> flipPanelList = new Vector<FlipPanel>();
		StringBuffer sqlBuff = new StringBuffer();
		Hashtable<String,Object> paraHash = new Hashtable<String,Object>();
		
		//sql语句部分
		sqlBuff.append(" select * from FlipPanel order by weight desc,id ");
		
		//执行sql 
		flipPanelList = this.dbManager.querySqlReturnVoList(sqlBuff.toString(),paraHash);
		
		//返回列表
		return flipPanelList;
	}
}
